import { createRouter, createWebHashHistory } from 'vue-router'
import Login from '@/manager/views/Login.vue'
import Chat from '@/manager/views/Chat.vue'
import Layout from '@/manager/views/Layout.vue'

const router = createRouter({
  history: createWebHashHistory(),
  routes: [
    {
      path: '/login',
      name: 'login',
      component: () => import('@/manager/views/Login.vue')
    },
    {
      path: '/',
      name: 'home',
      redirect: 'my',
      component: () => import('@/manager/views/Layout.vue'),
      children: [
        {
          path: 'my',
          name: 'my',
          component: () => import('@/manager/views/Chat.vue')
        },
        {
          path: 'colleague',
          name: 'colleague',
          component: () => import('@/manager/views/Chat.vue')
        },
        {
          path: 'at',
          name: 'at',
          component: () => import('@/manager/views/Chat.vue')
        },
        {
          path: 'search',
          name: 'search',
          component: () => import('@/manager/views/Search.vue')
        },
        {
          path: 'hide',
          name: 'hide',
          component: () => import('@/manager/views/Chat.vue')
        }
      ]
    }
  ]
})

export default router
